package com.WISSC.service;

import com.WISSC.bean.IndividualEvent;
import com.WISSC.bean.Team;
import com.WISSC.bean.layuiBean.ResultPage;
import com.WISSC.bean.layuiBean.VoPage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战队信息表 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface TeamService extends IService<Team> {

    ResultPage<Team> findPage(int current, int size,String teamName,String city,Long buildingTime,Integer teamLevel,HttpSession session,boolean admin);

    /**
     *
     * @param
     * @param
     * @return 战队赛事登录
     */
    List<Team> login(String teamName);

    /**\
     *
     * @param session
     * @return 战队赛事查询
     */
    List<Team> selectByName(HttpSession session);

    /**
     *
     * @param team
     * @return 战队添加
     */
     String teamInsert(String param2, Team team);


    /**
     * @param session
     * @param voPage
     * @return 查询战队信息表格
     */
     /*ResultPage<Team> selectMyPage(String  teamName, VoPage voPage);*/


     Team select( String teamName,String city);

     //gu
    List<Team> country(String city,String teamName);

    /**
     *
     * @param id
     * @return 战队编辑回显所在地区
     */
    Map getTeamCity(Long id);

    ResultPage<Team> selectTeamName(VoPage voPage,String teamName);


    Map updateTeam(Team team, String param2);

    List<Team> getTeam(String teamName);
}
